<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f7f7f7;
            margin: 0;
        }
        .myTab {
            border: 1px solid #ddd;
            border-collapse: collapse;
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            border-radius: 15px; /* 圆角 */
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 50vh;
        }
        .myTab form {
            width: 100%;
        }
        td {
            padding: 10px;
            text-align: center;
        }
        input[type="text"],
        input[type="password"],
        select {
            width: 100%;
            padding: 8px;
            margin: 5px 0;
            border: 1px solid #ccc;
            border-radius: 5px; /* 圆角 */
        }
        input[type="submit"] {
            padding: 10px 15px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px; /* 圆角 */
            cursor: pointer;
            margin-top: 10px; /* 顶部间距 */
            float: right;
        }
        input[type="submit"]:hover {
            background-color: #036ad5;

        }
        a {
            margin-top: 10px; /* 顶部间距 */
            text-decoration: none;
            color: #007bff;
        }
        a:hover {
            text-decoration: underline;
        }
    </style>
    <meta charset="UTF-8">
    <title>用户注册</title>
</head>
<body>
<form action="/user/submitAndRegister">
    <label>用户名：<input name="username" type="text"></label><BR>
    <label>密码：<input name="password" type="password"></label><BR>
    <input type="submit" value="提交">
</form>

</body>
</html>